/*
 * @Descripttion: 
 * @version: 
 * @Author: Lome
 * @Date: 2019-12-29 01:56:45
 * @LastEditors: Lome
 * @LastEditTime: 2020-05-12 19:28:23
 */
import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/Home.vue'

import Main from '../views/Main.vue'
import SearchList from '../views/global/SearchList.vue'
import SelectedTable from '../views/global/SelectedTable.vue'
import vueGrid from '../views/test/vueGrid.vue'
import editTabs from '../views/test/editTabs.vue'
import qipan from '../views/test/qipan.vue'
import filesUpload from '../views/test/filesUpload.vue'
import baiduEarth from '../views/test/baiduEarth.vue'
import plTable from '../views/test/plTable.vue'

// import CategoryEdit from './views/CateGoryEdit.vue'
// import CategoryList from './views/CateGoryList.vue'

Vue.use(Router)

export default new Router({
	model:'hash',
	routes: [
		{
			path: '/',
			name: 'SelectedTable',
			component: SelectedTable
		},
		{
			path: '/about',
			name: 'about',
			component: function() {
				return import('../views/About.vue')
			}
		},
		{
			path: '/vue-gird-layout',
			name: 'vue-gird-layout',
			component: function() {
				return import('../views/VueGirdLayout.vue')
			}
		},
		{
			path: '/main',
			name: 'Main',
			component: Main,
			children: [
				{ path: 'components/search', name: 'SearchList', component: SearchList },
				{ path: 'global/SelectedTable', name: 'SelectedTable', component: SelectedTable },
				{ path: 'test/vue-grid', name: 'vue-gird', component: vueGrid },
				{ path: 'test/edit-tabs', name: 'edit-tabs', component: editTabs },
				{ path: 'test/qipan', name: 'qipan', component: qipan },
				{ path: 'test/filesUpload', name: 'filesUpload', component: filesUpload },
				{ path: 'test/baiduEarth', name: 'baiduEarth', component: baiduEarth },
				{ path: 'test/plTable', name: 'plTable', component: plTable }
			]
		}
	]
})
